package com.sgb.member.weight.threefliter;

public class MPickResultEntity {

    private String no;
    private String name;
    private String cityno;
    private int position = -1;

    public String getCityno() {
        return cityno;
    }

    public void setCityno(String cityno) {
        this.cityno = cityno;
    }

    public String getNo() {
        return no == null ? "" : no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getName() {
        return name == null ? "" : name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public void clear() {
        setNo("");
        setName("");
        setPosition(-1);
    }

    public void replace(MPickResultEntity entity) {
        clear();
        setNo(entity.getNo());
        setName(entity.getName());
        setPosition(entity.getPosition());
    }
}
